home *** CD-ROM | disk | FTP | other *** search
- SciPlot.7.MACRO - 31.08.93 11:53 - v3.6 (c)M.Wesemann'91/92/93
- ### MACRO NUMBER
- 0
- ### MACRO0
- 1022
-
- %%% (c) M.Wesemann '93 %%%
- %%% This is a macro for automatic peak %%%
- %%% positon assigning. %%%
- %%% Usage: Select a positon (x) with %%%
- %%% the mousemode 'measure'and click %%%
- %%% 'Execute' %%%
-
- setstring[font;$scalefont] %%% the font %%%
- set[size;scalefontsize] %%% the font size %%%
- setstring[text;<xpos:3>] %%% the text %%%
- set[len;25] %%% arrow length %%%
- set[wid;1] %%% arrow width %%%
-
- set[yp;ypoint(findy(cb,xpos),0)]
- set[xp;xpoint(xpos,0)]
- settextwidth[tw;$text;$font;size]
- settextheight[th;$font;size]
- if[yp+len+2+tw;<;ypoint(ymax1,0)]
- line[0;xp;yp+len;xp;yp+3;3;0;1;wid;0;0;0;1;0]
- text[$text;$font;size;0;xp+th/2;yp+len+2;
- 0;90;0;0;0;1;0]
- else[]
- line[0;xp;yp-len;xp;yp-3;3;0;1;wid;0;0;0;1;0]
- text[$text;$font;size;0;xp+th/2;yp-len-2-tw;
- 0;90;0;0;0;1;0]
- endif[]
- plot[]
-
- ### MACRO1
- 0
-
- ### MACRO2
- 0
-
- ### MACRO3
- 0
-
- ### MACRO4
- 0
-
- ### MACRO5
- 0
-
- ### MACRO6
- 0
-
- ### MACRO7
- 0
-
- ### MACRO8
- 0
-
- ### MACRO9
- 0
-
-